﻿using Dotnet.TopApi;
using Dotnet.TopApi.Request;
using HtmlAgilityPack;
using ScrapySharp.Extensions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Xml.Linq;

namespace Dotnet.Sui
{
    //GET https://www.sui.com/category/storeCategory.do HTTP/1.1
    public class DoStoreCategoryRequest : SuiRequest, ITopRequest<DoStoreCategoryResponse>
    {
        public string GetApiName()
        {
            return "category/storeCategory.do";
        }

        public IDictionary<string, string> GetParameters()
        {
            TopDictionary dict = base.GetParameters1() as TopDictionary;
            dict.AddHeadersMethod("GET");
            return dict;
        }

        public void Validate()
        {
           // throw new NotImplementedException();
        }
    }

    public class DoStoreCategoryResponse : SuiDoResponse
    {
        public override void ParseCateAccount(string html)
        {
            _cateAccount = base.StoreProjectCategory(html);
        }
    }
}
